package main

import (
	"fmt"
	"time"
)

// 协程资源竞争
func main() {
	go myPrint("aaaaaaaaaa")
	go myPrint("bbbbbbbbbb")

	for {

	}
}

func myPrint(str string) {
	for _, data := range str {
		fmt.Printf("%c", data)
		time.Sleep(time.Second)
	}
}
